package com.y.controller;

/**
 * @Auther:云尚学Java
 */
public abstract class HttpServlet extends GenericServlet1 {
    public abstract void doGet();
    public abstract void doPost();
    @Override
    public void service(String method) {
        if ("get".equalsIgnoreCase(method)) {
            this.doGet();
        } else if ("post".equalsIgnoreCase(method)) {
            this.doPost();
        }
    }
}
